package com.serviceprovider.business.module.sp.transaction.valueobjects;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.sp.transaction.model.TransactionUserAmount;
import com.serviceprovider.business.module.user.model.impl.User;

/**
 * Value object for transaction amount
 *
 * @author mrduongnv@gmail.com
 */
public class TransactionAmountVO {
    private Integer amount;
    private User    payee;

    public TransactionAmountVO() {
        payee = new User();
    }

    public TransactionAmountVO(TransactionUserAmount amount) {
        this.amount = amount.getAmount();
        this.payee  = amount.getUser();
    }

    public User getPayee() {
        return payee;
    }

    public void setPayee(User payee) {
        this.payee = payee;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }
}



